﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace WpfByToolKit.CustomControl
{

	/// <summary>
	/// 依赖属性   重写按钮模板    全局样式    静态资源  
	/// </summary>
	partial class CustomButton:Button
	{


		public string CCName
		{
			get { return (string)GetValue(CCNameProperty); }
			set { SetValue(CCNameProperty, value); }
		}

		// Using a DependencyProperty as the backing store for CCName.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty CCNameProperty =
			DependencyProperty.Register("CCName", typeof(string), typeof(CustomButton));




		public CornerRadius ButtonCornerRadius	
        {
			get { return (CornerRadius)GetValue(ButtonCornerRadiusProperty); }
			set { SetValue(ButtonCornerRadiusProperty, value); }
		}

		// Using a DependencyProperty as the backing store for CornerRadius.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty ButtonCornerRadiusProperty =
			DependencyProperty.Register("ButtonCornerRadius", typeof(CornerRadius), typeof(CustomButton));





		public Brush BackgroundHover
		{
			get { return (Brush)GetValue(BackgroundHoverProperty); }
			set { SetValue(BackgroundHoverProperty, value); }
		}

		// Using a DependencyProperty as the backing store for BackgroundHover.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty BackgroundHoverProperty =
			DependencyProperty.Register("BackgroundHover", typeof(Brush), typeof(CustomButton));



		public Brush BackgroundPress
		{
			get { return (Brush)GetValue(BackgroundPressProperty); }
			set { SetValue(BackgroundPressProperty, value); }
		}

		// Using a DependencyProperty as the backing store for BackgroundPress.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty BackgroundPressProperty =
			DependencyProperty.Register("BackgroundPress", typeof(Brush), typeof(CustomButton));



	}
}
